import { reactive } from "vue";
/** 绑定供货商信息校验规则 */
export const createRules = reactive({
  paymethod: [{ required: true, message: "支付方式为必填项", trigger: "blur" }],
  price: [{ required: true, message: "支出金额为必填项", trigger: "blur" }],
  suppliername: [{ required: true, message: "供应商为必填项", trigger: "blur" }]
  // send_side_freight: [
  //   { required: true, message: "寄件运费为必填项", trigger: "blur" }
  // ],
  // receive_side_freight: [
  //   { required: true, message: "收货运费为必填项", trigger: "blur" }
  // ]
});

/** 绑定物流信息校验规则 */
export const createDeliverRules = reactive({
  comcode: [
    { required: true, message: "物流公司编号为必填项", trigger: "blur" }
  ],
  trackingnum: [
    { required: true, message: "物流订单号为必填项", trigger: "blur" }
  ]
});
